Let g(x)=ex+x.
(a) Find the solution of g(x)=0 between x=−1 and x=0 using the bisection method, with error ≤0.2.
(b) Find the solution with a first-degree polynomial approximation.
(c) Find the solution with a second-degree polynomial approximation.
Solution
(a) Bisection. Check the sign change:
g(−1)=e−1−1=0.368−1=−0.632<0, g(0)=1+0=1>0. Root in [−1,0].
g(−0.5)=0.607−0.5=+0.107>0⇒ root in [−1,−0.5].
g(−0.75)=0.472−0.75=−0.278<0⇒ root in [−0.75,−0.5].
g(−0.625)=0.535−0.625=−0.090<0⇒ root in [−0.625,−0.5], width 0.125<0.2.
So x0≈−0.57 (the exact value is ≈−0.567).
(b) First-degree approximation (Taylor at 0).g(0)=1, g′(x)=ex+1⇒g′(0)=2. Line: 1+2x=0⇒x1=−21=−0.5.
(c) Second-degree approximation.g′′(x)=ex⇒g′′(0)=1. Polynomial: 1+2x+2x2=0⇒x2+4x+2=0x=−2+2≈−0.586.
Good approximation of the true root ≈−0.567.
x0≈−0.567,x1=−0.5,x2=−2+2≈−0.586